package com.fqxl.labour.controller;

import com.fqxl.labour.domain.vo.PageVo;
import com.fqxl.labour.service.CustomerService;
import com.fqxl.labour.untils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/customer")
@Api(tags = "热线客服")
public class CustomerController {

    private CustomerService customerService;

    /**
     * 查询热点客服
     * @param pageVo
     * @return
     */
    @ApiOperation("查询热线客服")
    @PostMapping("selectCustomer")
    public R selectCustomer(@RequestBody PageVo pageVo){
        return customerService.selectCustomer(pageVo);
    }
}
